from django.contrib import admin
from .models import Order
class OrderAdmin(admin.ModelAdmin):
	icon = '<i class="material-icons">monetization_on</i>'
	list_display = ('id','code','user_account_id','pay_type_id','amount',)
	readonly_fields = ('id','code','bus_state_id','voucher','user_account_id','pay_type_id','pay_type','amount','gmt_create','gmt_modified')
	list_filter = ('pay_type', 'gmt_create')
	search_fields = ('code', 'user_account_id', )
	list_display_links = ('id','code',)

# Register your models here.
admin.site.register(Order,OrderAdmin)
